package com.yusys.pattern.mode.decorator;

/**
 * 对 Decorator2016 进行装饰 裝飾
 */
public class Decorator2017 extends Decorator2016 {

    //这个构造方法必须有
    public Decorator2017(House house) {
        super(house);
    }

    @Override
    public void people() {
        super.people();

        //在2016的基础上扩展
        stillFindFriend();
    }

    private void stillFindFriend(){
        System.out.println("I still finding people");
    }

    @Override
    public void goods() {
        super.goods();
    }

    public void computer(){
        System.out.println("I buyed a new Computer");
    }
}
